package com.wpp.rabbitmq.c_pubsub;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author wpp25
 * @date 2019/11/19 21:51
 * @description：
 */
@RabbitListener(queues = "03_pubsub_queue01")
@Component
public class PubsubListener {

    @RabbitHandler
    public void testListener(String name) {
        System.out.println("03_pubsub_queue01=======>"+name);
    }
}
